<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QWebSettings Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QWebSettings Class Reference<br /><sup><sup>[<a href="qtwebkit.html">QtWebKit</a> module]</sup></sup></h1><p>The QWebSettings class provides an object to store the settings
used by <a href="qwebpage.html">QWebPage</a> and <a href="qwebframe.html">QWebFrame</a>. <a href="#details">More...</a></p>

<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qwebsettings.html#FontFamily-enum">FontFamily</a></b> { StandardFont, FixedFont, SerifFont, SansSerifFont, CursiveFont, FantasyFont }</li><li><div class="fn" />enum <b><a href="qwebsettings.html#FontSize-enum">FontSize</a></b> { MinimumFontSize, MinimumLogicalFontSize, DefaultFontSize, DefaultFixedFontSize }</li><li><div class="fn" />enum <b><a href="qwebsettings.html#WebAttribute-enum">WebAttribute</a></b> { AutoLoadImages, JavascriptEnabled, JavaEnabled, PluginsEnabled, ..., HyperlinkAuditingEnabled }</li><li><div class="fn" />enum <b><a href="qwebsettings.html#WebGraphic-enum">WebGraphic</a></b> { MissingImageGraphic, MissingPluginGraphic, DefaultFrameIconGraphic, TextAreaSizeGripCornerGraphic, ..., SearchCancelButtonPressedGraphic }</li></ul><h3>Methods</h3><ul><li><div class="fn" />QString <b><a href="qwebsettings.html#defaultTextEncoding">defaultTextEncoding</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qwebsettings.html#fontFamily">fontFamily</a></b> (<i>self</i>, FontFamily&#160;<i>which</i>)</li><li><div class="fn" />int <b><a href="qwebsettings.html#fontSize">fontSize</a></b> (<i>self</i>, FontSize&#160;<i>type</i>)</li><li><div class="fn" />QString <b><a href="qwebsettings.html#localStoragePath">localStoragePath</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#resetAttribute">resetAttribute</a></b> (<i>self</i>, WebAttribute&#160;<i>attr</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#resetFontFamily">resetFontFamily</a></b> (<i>self</i>, FontFamily&#160;<i>which</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#resetFontSize">resetFontSize</a></b> (<i>self</i>, FontSize&#160;<i>type</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setAttribute">setAttribute</a></b> (<i>self</i>, WebAttribute&#160;<i>attr</i>, bool&#160;<i>on</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setDefaultTextEncoding">setDefaultTextEncoding</a></b> (<i>self</i>, QString&#160;<i>encoding</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setFontFamily">setFontFamily</a></b> (<i>self</i>, FontFamily&#160;<i>which</i>, QString&#160;<i>family</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setFontSize">setFontSize</a></b> (<i>self</i>, FontSize&#160;<i>type</i>, int&#160;<i>size</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setLocalStoragePath">setLocalStoragePath</a></b> (<i>self</i>, QString&#160;<i>path</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setUserStyleSheetUrl">setUserStyleSheetUrl</a></b> (<i>self</i>, QUrl&#160;<i>location</i>)</li><li><div class="fn" />bool <b><a href="qwebsettings.html#testAttribute">testAttribute</a></b> (<i>self</i>, WebAttribute&#160;<i>attr</i>)</li><li><div class="fn" />QUrl <b><a href="qwebsettings.html#userStyleSheetUrl">userStyleSheetUrl</a></b> (<i>self</i>)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" /><b><a href="qwebsettings.html#clearIconDatabase">clearIconDatabase</a></b> ()</li><li><div class="fn" /><b><a href="qwebsettings.html#clearMemoryCaches">clearMemoryCaches</a></b> ()</li><li><div class="fn" /><b><a href="qwebsettings.html#enablePersistentStorage">enablePersistentStorage</a></b> (QString&#160;<i>path</i>&#160;=&#160;QString())</li><li><div class="fn" />QWebSettings <b><a href="qwebsettings.html#globalSettings">globalSettings</a></b> ()</li><li><div class="fn" />QString <b><a href="qwebsettings.html#iconDatabasePath">iconDatabasePath</a></b> ()</li><li><div class="fn" />QIcon <b><a href="qwebsettings.html#iconForUrl">iconForUrl</a></b> (QUrl&#160;<i>url</i>)</li><li><div class="fn" />int <b><a href="qwebsettings.html#maximumPagesInCache">maximumPagesInCache</a></b> ()</li><li><div class="fn" />int <b><a href="qwebsettings.html#offlineStorageDefaultQuota">offlineStorageDefaultQuota</a></b> ()</li><li><div class="fn" />QString <b><a href="qwebsettings.html#offlineStoragePath">offlineStoragePath</a></b> ()</li><li><div class="fn" />QString <b><a href="qwebsettings.html#offlineWebApplicationCachePath">offlineWebApplicationCachePath</a></b> ()</li><li><div class="fn" />int <b><a href="qwebsettings.html#offlineWebApplicationCacheQuota">offlineWebApplicationCacheQuota</a></b> ()</li><li><div class="fn" /><b><a href="qwebsettings.html#setIconDatabasePath">setIconDatabasePath</a></b> (QString&#160;<i>location</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setMaximumPagesInCache">setMaximumPagesInCache</a></b> (int&#160;<i>pages</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setObjectCacheCapacities">setObjectCacheCapacities</a></b> (int&#160;<i>cacheMinDeadCapacity</i>, int&#160;<i>cacheMaxDead</i>, int&#160;<i>totalCapacity</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setOfflineStorageDefaultQuota">setOfflineStorageDefaultQuota</a></b> (int&#160;<i>maximumSize</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setOfflineStoragePath">setOfflineStoragePath</a></b> (QString&#160;<i>path</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setOfflineWebApplicationCachePath">setOfflineWebApplicationCachePath</a></b> (QString&#160;<i>path</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setOfflineWebApplicationCacheQuota">setOfflineWebApplicationCacheQuota</a></b> (int&#160;<i>maximumSize</i>)</li><li><div class="fn" /><b><a href="qwebsettings.html#setWebGraphic">setWebGraphic</a></b> (WebGraphic&#160;<i>type</i>, QPixmap&#160;<i>graphic</i>)</li><li><div class="fn" />QPixmap <b><a href="qwebsettings.html#webGraphic">webGraphic</a></b> (WebGraphic&#160;<i>type</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QWebSettings class provides an object to store the settings
used by <a href="qwebpage.html">QWebPage</a> and <a href="qwebframe.html">QWebFrame</a>.</p>
<p>Each <a href="qwebpage.html">QWebPage</a> object has its own
QWebSettings object, which configures the settings for that page.
If a setting is not configured, then it is looked up in the global
settings object, which can be accessed using <a href="qwebsettings.html#globalSettings">globalSettings</a>().</p>
<p>QWebSettings allows configuration of browser properties, such as
font sizes and families, the location of a custom style sheet, and
generic attributes like JavaScript and plugins. Individual
attributes are set using the <a href="qwebsettings.html#setAttribute">setAttribute</a>() function. The
<a href="qwebsettings.html#WebAttribute-enum">WebAttribute</a> enum
further describes each attribute.</p>
<p>QWebSettings also configures global properties such as the web
page memory cache, icon database, local database storage and
offline applications storage.</p>
<a id="enabling-plugins" name="enabling-plugins" />
<h3>Enabling Plugins</h3>
<p>Support for browser plugins can enabled by setting the <a href="qwebsettings.html#WebAttribute-enum">PluginsEnabled</a> attribute.
For many applications, this attribute is enabled for all pages by
setting it on the <a href="qwebsettings.html#globalSettings">global
settings object</a>. <a href="qtwebkit.html">QtWebKit</a> will
always ignore this setting when processing Qt plugins. The decision
to allow a Qt plugin is made by the client in its reimplementation
of <a href="qwebpage.html#createPlugin">QWebPage.createPlugin</a>().</p>
<a id="web-application-support" name="web-application-support" />
<h3>Web Application Support</h3>
<p>WebKit provides support for features specified in <a href="http://www.w3.org/TR/html5/">HTML 5</a> that improve the
performance and capabilities of Web applications. These include
client-side (offline) storage and the use of a Web application
cache.</p>
<p>Client-side (offline) storage is an improvement over the use of
cookies to store persistent data in Web applications. Applications
can configure and enable the use of an offline storage database by
calling the <a href="qwebsettings.html#setOfflineStoragePath">setOfflineStoragePath</a>()
with an appropriate file path, and can limit the quota for each
application by calling <a href="qwebsettings.html#setOfflineStorageDefaultQuota">setOfflineStorageDefaultQuota</a>().</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="FontFamily-enum" />QWebSettings.FontFamily</h3><p>This enum describes the generic font families defined by CSS 2.
For more information see the <a href="http://www.w3.org/TR/REC-CSS2/fonts.html#generic-font-families">CSS
standard</a>.</p>
<table class="valuelist">
<tr>
<th class="tblConst">Constant</th>
<th class="tblVal">Value</th>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.StandardFont</tt></td>
<td class="topAlign"><tt>0</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.FixedFont</tt></td>
<td class="topAlign"><tt>1</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.SerifFont</tt></td>
<td class="topAlign"><tt>2</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.SansSerifFont</tt></td>
<td class="topAlign"><tt>3</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.CursiveFont</tt></td>
<td class="topAlign"><tt>4</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.FantasyFont</tt></td>
<td class="topAlign"><tt>5</tt></td>
</tr>
</table>


<h3 class="fn"><a name="FontSize-enum" />QWebSettings.FontSize</h3><p>This enum describes the font sizes configurable through <a href="qwebsettings.html">QWebSettings</a>.</p>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.MinimumFontSize</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The hard minimum font size.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.MinimumLogicalFontSize</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">The minimum logical font size that is applied
when zooming out with <a href="qwebframe.html#setTextSizeMultiplier">QWebFrame.setTextSizeMultiplier</a>().</td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.DefaultFontSize</tt></td>
<td class="topAlign"><tt>2</tt></td>
<td class="topAlign">The default font size for regular text.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.DefaultFixedFontSize</tt></td>
<td class="topAlign"><tt>3</tt></td>
<td class="topAlign">The default font size for fixed-pitch
text.</td>
</tr>
</table>


<h3 class="fn"><a name="WebAttribute-enum" />QWebSettings.WebAttribute</h3><p>This enum describes various attributes that are configurable
through <a href="qwebsettings.html">QWebSettings</a>.</p>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.AutoLoadImages</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">Specifies whether images are automatically
loaded in web pages. This is enabled by default.</td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.DnsPrefetchEnabled</tt></td>
<td class="topAlign">?</td>
<td class="topAlign">Specifies whether QtWebkit will try to
pre-fetch DNS entries to speed up browsing. This only works as a
global attribute. Only for Qt 4.6 and later. This is disabled by
default.</td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.JavascriptEnabled</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">Enables or disables the running of JavaScript
programs. This is enabled by default</td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.JavaEnabled</tt></td>
<td class="topAlign"><tt>2</tt></td>
<td class="topAlign">Enables or disables Java applets. Currently
Java applets are not supported.</td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.PluginsEnabled</tt></td>
<td class="topAlign"><tt>3</tt></td>
<td class="topAlign">Enables or disables plugins in Web pages (e.g.
using NPAPI). Qt plugins with a mimetype such as
"application/x-qt-plugin" are not affected by this setting. This is
disabled by default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.PrivateBrowsingEnabled</tt></td>
<td class="topAlign"><tt>4</tt></td>
<td class="topAlign">Private browsing prevents WebKit from
recording visited pages in the history and storing web page icons.
This is disabled by default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.JavascriptCanOpenWindows</tt></td>
<td class="topAlign"><tt>5</tt></td>
<td class="topAlign">Specifies whether JavaScript programs can open
new windows. This is disabled by default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.JavascriptCanCloseWindows</tt></td>
<td class="topAlign">?</td>
<td class="topAlign">Specifies whether JavaScript programs can
close windows. This is disabled by default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.JavascriptCanAccessClipboard</tt></td>
<td class="topAlign"><tt>6</tt></td>
<td class="topAlign">Specifies whether JavaScript programs can read
or write to the clipboard. This is disabled by default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.DeveloperExtrasEnabled</tt></td>
<td class="topAlign"><tt>7</tt></td>
<td class="topAlign">Enables extra tools for Web developers.
Currently this enables the "Inspect" element in the context menu as
well as the use of <a href="qwebinspector.html">QWebInspector</a>
which controls the web inspector for web site debugging. This is
disabled by default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.SpatialNavigationEnabled</tt></td>
<td class="topAlign">?</td>
<td class="topAlign">Enables or disables the Spatial Navigation
feature, which consists in the ability to navigate between
focusable elements in a Web page, such as hyperlinks and form
controls, by using Left, Right, Up and Down arrow keys. For
example, if a user presses the Right key, heuristics determine
whether there is an element he might be trying to reach towards the
right and which element he probably wants. This is disabled by
default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.LinksIncludedInFocusChain</tt></td>
<td class="topAlign"><tt>8</tt></td>
<td class="topAlign">Specifies whether hyperlinks should be
included in the keyboard focus chain. This is enabled by
default.</td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.ZoomTextOnly</tt></td>
<td class="topAlign"><tt>9</tt></td>
<td class="topAlign">Specifies whether the zoom factor on a frame
applies only to the text or to all content. This is disabled by
default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.PrintElementBackgrounds</tt></td>
<td class="topAlign"><tt>10</tt></td>
<td class="topAlign">Specifies whether the background color and
images are also drawn when the page is printed. This is enabled by
default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.OfflineStorageDatabaseEnabled</tt></td>
<td class="topAlign"><tt>11</tt></td>
<td class="topAlign">Specifies whether support for the HTML 5
offline storage feature is enabled or not. This is disabled by
default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.OfflineWebApplicationCacheEnabled</tt></td>
<td class="topAlign"><tt>12</tt></td>
<td class="topAlign">Specifies whether support for the HTML 5 web
application cache feature is enabled or not. This is disabled by
default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.LocalStorageEnabled</tt></td>
<td class="topAlign"><tt>13</tt></td>
<td class="topAlign">Specifies whether support for the HTML 5 local
storage feature is enabled or not. This is disabled by default.
(This value was introduced in 4.6.)</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.LocalStorageDatabaseEnabled</tt></td>
<td class="topAlign"><tt>LocalStorageEnabled</tt></td>
<td class="topAlign"><i>This enum value is deprecated.</i> Use
QWebSettings.LocalStorageEnabled instead.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.LocalContentCanAccessRemoteUrls</tt></td>
<td class="topAlign">?</td>
<td class="topAlign">Specifies whether locally loaded documents are
allowed to access remote urls. This is disabled by default. For
more information about security origins and local vs. remote
content see <a href="qwebsecurityorigin.html">QWebSecurityOrigin</a>. (This value was
introduced in 4.6.)</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.LocalContentCanAccessFileUrls</tt></td>
<td class="topAlign">?</td>
<td class="topAlign">Specifies whether locally loaded documents are
allowed to access other local urls. This is enabled by default. For
more information about security origins and local vs. remote
content see <a href="qwebsecurityorigin.html">QWebSecurityOrigin</a>.</td>
</tr>
<tr>
<td class="topAlign"><tt>QWebSettings.XSSAuditingEnabled</tt></td>
<td class="topAlign">?</td>
<td class="topAlign">Specifies whether load requests should be
monitored for cross-site scripting attempts. Suspicious scripts
will be blocked and reported in the inspector's JavaScript console.
Enabling this feature might have an impact on performance and it is
disabled by default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.AcceleratedCompositingEnabled</tt></td>
<td class="topAlign">?</td>
<td class="topAlign">This feature, when used in conjunction with
<a href="qgraphicswebview.html">QGraphicsWebView</a>, accelerates
animations of web content. CSS animations of the transform and
opacity properties will be rendered by composing the cached content
of the animated elements. This is enabled by default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.TiledBackingStoreEnabled</tt></td>
<td class="topAlign">?</td>
<td class="topAlign">This setting enables the tiled backing store
feature for a <a href="qgraphicswebview.html">QGraphicsWebView</a>.
With the tiled backing store enabled, the web page contents in and
around the current visible area is speculatively cached to bitmap
tiles. The tiles are automatically kept in sync with the web page
as it changes. Enabling tiling can significantly speed up painting
heavy operations like scrolling. Enabling the feature increases
memory consumption. It does not work well with contents using CSS
fixed positioning (see also <a href="qgraphicswebview.html#resizesToContents-prop">resizesToContents</a>
property). <a href="qgraphicswebview.html#tiledBackingStoreFrozen-prop">tiledBackingStoreFrozen</a>
property allows application to temporarily freeze the contents of
the backing store. This is disabled by default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.FrameFlatteningEnabled</tt></td>
<td class="topAlign">?</td>
<td class="topAlign">With this setting each subframe is expanded to
its contents. On touch devices, it is desired to not have any
scrollable sub parts of the page as it results in a confusing user
experience, with scrolling sometimes scrolling sub parts and at
other times scrolling the page itself. For this reason iframes and
framesets are barely usable on touch devices. This will flatten all
the frames to become one scrollable page. This is disabled by
default.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.SiteSpecificQuirksEnabled</tt></td>
<td class="topAlign">?</td>
<td class="topAlign">This setting enables WebKit's workaround for
broken sites. It is enabled by default.</td>
</tr>
</table>


<h3 class="fn"><a name="WebGraphic-enum" />QWebSettings.WebGraphic</h3><p>This enums describes the standard graphical elements used in
webpages.</p>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.MissingImageGraphic</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The replacement graphic shown when an image
could not be loaded.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.MissingPluginGraphic</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">The replacement graphic shown when a plugin
could not be loaded.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.DefaultFrameIconGraphic</tt></td>
<td class="topAlign"><tt>2</tt></td>
<td class="topAlign">The default icon for <a href="qwebframe.html#icon-prop">QWebFrame.icon</a>().</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.TextAreaSizeGripCornerGraphic</tt></td>
<td class="topAlign"><tt>3</tt></td>
<td class="topAlign">The graphic shown for the size grip of text
areas.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.DeleteButtonGraphic</tt></td>
<td class="topAlign"><tt>4</tt></td>
<td class="topAlign">The graphic shown for the
WebKit-Editing-Delete-Button in Deletion UI.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.InputSpeechButtonGraphic</tt></td>
<td class="topAlign"><tt>5</tt></td>
<td class="topAlign">The graphic shown in input fields that support
speech recognition.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.SearchCancelButtonGraphic</tt></td>
<td class="topAlign"><tt>6</tt></td>
<td class="topAlign">The graphic shown for clearing the text in a
search field.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QWebSettings.SearchCancelButtonPressedGraphic</tt></td>
<td class="topAlign"><tt>7</tt></td>
<td class="topAlign">The graphic shown when
SearchCancelButtonGraphic is pressed.</td>
</tr>
</table>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="clearIconDatabase" />QWebSettings.clearIconDatabase ()</h3><p>Clears the icon database.</p>


<h3 class="fn"><a name="clearMemoryCaches" />QWebSettings.clearMemoryCaches ()</h3><p>Frees up as much memory as possible by cleaning all memory
caches such as page, object and font cache.</p>
<p>This function was introduced in Qt 4.6.</p>


<h3 class="fn"><a name="defaultTextEncoding" />QString QWebSettings.defaultTextEncoding (<i>self</i>)</h3><p>Returns the default text encoding.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also</b> <a href="qwebsettings.html#setDefaultTextEncoding">setDefaultTextEncoding</a>().</p>


<h3 class="fn"><a name="enablePersistentStorage" />QWebSettings.enablePersistentStorage (QString&#160;<i>path</i>&#160;=&#160;QString())</h3><p>Enables WebKit data persistence and sets the path to
<i>path</i>. If <i>path</i> is empty, the user-specific data
location specified by <a href="qdesktopservices.html#StandardLocation-enum">DataLocation</a> will
be used instead.</p>
<p>This method will simultaneously set and enable the <a href="qwebsettings.html#iconDatabasePath">iconDatabasePath</a>(),
<a href="qwebsettings.html#localStoragePath">localStoragePath</a>(),
<a href="qwebsettings.html#offlineStoragePath">offlineStoragePath</a>() and
<a href="qwebsettings.html#offlineWebApplicationCachePath">offlineWebApplicationCachePath</a>().</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also</b> <a href="qwebsettings.html#localStoragePath">localStoragePath</a>().</p>


<h3 class="fn"><a name="fontFamily" />QString QWebSettings.fontFamily (<i>self</i>, <a href="qwebsettings.html#FontFamily-enum">FontFamily</a>&#160;<i>which</i>)</h3><p>Returns the actual font family for the specified generic font
family, <i>which</i>.</p>
<p><b>See also</b> <a href="qwebsettings.html#setFontFamily">setFontFamily</a>().</p>


<h3 class="fn"><a name="fontSize" />int QWebSettings.fontSize (<i>self</i>, <a href="qwebsettings.html#FontSize-enum">FontSize</a>&#160;<i>type</i>)</h3><p>Returns the default font size for <i>type</i>.</p>
<p><b>See also</b> <a href="qwebsettings.html#setFontSize">setFontSize</a>().</p>


<h3 class="fn"><a name="globalSettings" /><a href="qwebsettings.html">QWebSettings</a> QWebSettings.globalSettings ()</h3><p>Returns the global settings object.</p>
<p>Any setting changed on the default object is automatically
applied to all <a href="qwebpage.html">QWebPage</a> instances where
the particular setting is not overriden already.</p>


<h3 class="fn"><a name="iconDatabasePath" />QString QWebSettings.iconDatabasePath ()</h3><p>Returns the path of the icon database or an empty string if the
icon database is disabled.</p>
<p><b>See also</b> <a href="qwebsettings.html#setIconDatabasePath">setIconDatabasePath</a>()
and <a href="qwebsettings.html#clearIconDatabase">clearIconDatabase</a>().</p>


<h3 class="fn"><a name="iconForUrl" /><a href="qicon.html">QIcon</a> QWebSettings.iconForUrl (<a href="qurl.html">QUrl</a>&#160;<i>url</i>)</h3><p>Returns the web site's icon for <i>url</i>.</p>
<p>If the web site does not specify an icon <b>OR</b> if the icon
is not in the database, a null <a href="qicon.html">QIcon</a> is
returned.</p>
<p><b>Note:</b> The returned icon's size is arbitrary.</p>
<p><b>See also</b> <a href="qwebsettings.html#setIconDatabasePath">setIconDatabasePath</a>().</p>


<h3 class="fn"><a name="localStoragePath" />QString QWebSettings.localStoragePath (<i>self</i>)</h3><p>Returns the path for HTML5 local storage.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also</b> <a href="qwebsettings.html#setLocalStoragePath">setLocalStoragePath</a>().</p>


<h3 class="fn"><a name="maximumPagesInCache" />int QWebSettings.maximumPagesInCache ()</h3><p>Returns the maximum number of web pages that are kept in the
memory cache.</p>
<p><b>See also</b> <a href="qwebsettings.html#setMaximumPagesInCache">setMaximumPagesInCache</a>().</p>


<h3 class="fn"><a name="offlineStorageDefaultQuota" />int QWebSettings.offlineStorageDefaultQuota ()</h3><p>Returns the value of the default quota for new offline storage
databases.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also</b> <a href="qwebsettings.html#setOfflineStorageDefaultQuota">setOfflineStorageDefaultQuota</a>().</p>


<h3 class="fn"><a name="offlineStoragePath" />QString QWebSettings.offlineStoragePath ()</h3><p>Returns the path of the HTML5 client-side database storage or an
empty string if the feature is disabled.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also</b> <a href="qwebsettings.html#setOfflineStoragePath">setOfflineStoragePath</a>().</p>


<h3 class="fn"><a name="offlineWebApplicationCachePath" />QString QWebSettings.offlineWebApplicationCachePath ()</h3><p>Returns the path of the HTML5 offline web application cache
storage or an empty string if the feature is disabled.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also</b> <a href="qwebsettings.html#setOfflineWebApplicationCachePath">setOfflineWebApplicationCachePath</a>().</p>


<h3 class="fn"><a name="offlineWebApplicationCacheQuota" />int QWebSettings.offlineWebApplicationCacheQuota ()</h3><p>Returns the value of the quota for the offline web application
cache.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also</b> <a href="qwebsettings.html#setOfflineWebApplicationCacheQuota">setOfflineWebApplicationCacheQuota</a>().</p>


<h3 class="fn"><a name="resetAttribute" />QWebSettings.resetAttribute (<i>self</i>, <a href="qwebsettings.html#WebAttribute-enum">WebAttribute</a>&#160;<i>attr</i>)</h3><p>Resets the setting of <i>attribute</i> to the value specified in
the global <a href="qwebsettings.html">QWebSettings</a>
instance.</p>
<p>This function has no effect on the global <a href="qwebsettings.html">QWebSettings</a> instance.</p>
<p><b>See also</b> <a href="qwebsettings.html#globalSettings">globalSettings</a>().</p>


<h3 class="fn"><a name="resetFontFamily" />QWebSettings.resetFontFamily (<i>self</i>, <a href="qwebsettings.html#FontFamily-enum">FontFamily</a>&#160;<i>which</i>)</h3><p>Resets the actual font family specified by <i>which</i> to the
one set in the global <a href="qwebsettings.html">QWebSettings</a>
instance.</p>
<p>This function has no effect on the global <a href="qwebsettings.html">QWebSettings</a> instance.</p>


<h3 class="fn"><a name="resetFontSize" />QWebSettings.resetFontSize (<i>self</i>, <a href="qwebsettings.html#FontSize-enum">FontSize</a>&#160;<i>type</i>)</h3><p>Resets the font size for <i>type</i> to the size specified in
the global settings object.</p>
<p>This function has no effect on the global <a href="qwebsettings.html">QWebSettings</a> instance.</p>


<h3 class="fn"><a name="setAttribute" />QWebSettings.setAttribute (<i>self</i>, <a href="qwebsettings.html#WebAttribute-enum">WebAttribute</a>&#160;<i>attr</i>, bool&#160;<i>on</i>)</h3><p>Enables or disables the specified <i>attribute</i> feature
depending on the value of <i>on</i>.</p>


<h3 class="fn"><a name="setDefaultTextEncoding" />QWebSettings.setDefaultTextEncoding (<i>self</i>, QString&#160;<i>encoding</i>)</h3><p>Specifies the default text encoding system.</p>
<p>The <i>encoding</i>, must be a string describing an encoding
such as "utf-8", "iso-8859-1", etc. If left empty a default value
will be used. For a more extensive list of encoding names see
<a href="qtextcodec.html">QTextCodec</a></p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also</b> <a href="qwebsettings.html#defaultTextEncoding">defaultTextEncoding</a>().</p>


<h3 class="fn"><a name="setFontFamily" />QWebSettings.setFontFamily (<i>self</i>, <a href="qwebsettings.html#FontFamily-enum">FontFamily</a>&#160;<i>which</i>, QString&#160;<i>family</i>)</h3><p>Sets the actual font family to <i>family</i> for the specified
generic family, <i>which</i>.</p>
<p><b>See also</b> <a href="qwebsettings.html#fontFamily">fontFamily</a>().</p>


<h3 class="fn"><a name="setFontSize" />QWebSettings.setFontSize (<i>self</i>, <a href="qwebsettings.html#FontSize-enum">FontSize</a>&#160;<i>type</i>, int&#160;<i>size</i>)</h3><p>Sets the font size for <i>type</i> to <i>size</i>.</p>
<p><b>See also</b> <a href="qwebsettings.html#fontSize">fontSize</a>().</p>


<h3 class="fn"><a name="setIconDatabasePath" />QWebSettings.setIconDatabasePath (QString&#160;<i>location</i>)</h3><p>Sets the path of the icon database to <i>path</i>. The icon
database is used to store "favicons" associated with web sites.</p>
<p><i>path</i> must point to an existing directory.</p>
<p>Setting an empty path disables the icon database.</p>
<p><b>See also</b> <a href="qwebsettings.html#iconDatabasePath">iconDatabasePath</a>() and
<a href="qwebsettings.html#clearIconDatabase">clearIconDatabase</a>().</p>


<h3 class="fn"><a name="setLocalStoragePath" />QWebSettings.setLocalStoragePath (<i>self</i>, QString&#160;<i>path</i>)</h3><p>Sets the path for HTML5 local storage to <i>path</i>.</p>
<p>For more information on HTML5 local storage see the <a href="http://www.w3.org/TR/webstorage/#the-localstorage-attribute">Web
Storage standard</a>.</p>
<p>Support for local storage can enabled by setting the <a href="qwebsettings.html#WebAttribute-enum">LocalStorageEnabled</a>
attribute.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also</b> <a href="qwebsettings.html#localStoragePath">localStoragePath</a>().</p>


<h3 class="fn"><a name="setMaximumPagesInCache" />QWebSettings.setMaximumPagesInCache (int&#160;<i>pages</i>)</h3><p>Sets the maximum number of pages to hold in the memory page
cache to <i>pages</i>.</p>
<p>The Page Cache allows for a nicer user experience when
navigating forth or back to pages in the forward/back history, by
pausing and resuming up to <i>pages</i>.</p>
<p>For more information about the feature, please refer to:</p>
<p>http://webkit.org/blog/427/webkit-page-cache-i-the-basics/</p>
<p><b>See also</b> <a href="qwebsettings.html#maximumPagesInCache">maximumPagesInCache</a>().</p>


<h3 class="fn"><a name="setObjectCacheCapacities" />QWebSettings.setObjectCacheCapacities (int&#160;<i>cacheMinDeadCapacity</i>, int&#160;<i>cacheMaxDead</i>, int&#160;<i>totalCapacity</i>)</h3><p>Specifies the capacities for the memory cache for dead objects
such as stylesheets or scripts.</p>
<p>The <i>cacheMinDeadCapacity</i> specifies the <i>minimum</i>
number of bytes that dead objects should consume when the cache is
under pressure.</p>
<p><i>cacheMaxDead</i> is the <i>maximum</i> number of bytes that
dead objects should consume when the cache is <b>not</b> under
pressure.</p>
<p><i>totalCapacity</i> specifies the <i>maximum</i> number of
bytes that the cache should consume <b>overall</b>.</p>
<p>The cache is enabled by default. Calling
setObjectCacheCapacities(0, 0, 0) will disable the cache. Calling
it with one non-zero enables it again.</p>


<h3 class="fn"><a name="setOfflineStorageDefaultQuota" />QWebSettings.setOfflineStorageDefaultQuota (int&#160;<i>maximumSize</i>)</h3><p>Sets the value of the default quota for new offline storage
databases to <i>maximumSize</i>.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also</b> <a href="qwebsettings.html#offlineStorageDefaultQuota">offlineStorageDefaultQuota</a>().</p>


<h3 class="fn"><a name="setOfflineStoragePath" />QWebSettings.setOfflineStoragePath (QString&#160;<i>path</i>)</h3><p>Sets <i>path</i> as the save location for HTML5 client-side
database storage data.</p>
<p><i>path</i> must point to an existing directory.</p>
<p>Setting an empty path disables the feature.</p>
<p>Support for client-side databases can enabled by setting the
<a href="qwebsettings.html#WebAttribute-enum">OfflineStorageDatabaseEnabled</a>
attribute.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also</b> <a href="qwebsettings.html#offlineStoragePath">offlineStoragePath</a>().</p>


<h3 class="fn"><a name="setOfflineWebApplicationCachePath" />QWebSettings.setOfflineWebApplicationCachePath (QString&#160;<i>path</i>)</h3><p>Sets the path for HTML5 offline web application cache storage to
<i>path</i>.</p>
<p>An application cache acts like an HTTP cache in some sense. For
documents that use the application cache via JavaScript, the loader
engine will first ask the application cache for the contents,
before hitting the network.</p>
<p>The feature is described in details at:
http://dev.w3.org/html5/spec/Overview.html#appcache</p>
<p><i>path</i> must point to an existing directory.</p>
<p>Setting an empty path disables the feature.</p>
<p>Support for offline web application cache storage can enabled by
setting the <a href="qwebsettings.html#WebAttribute-enum">OfflineWebApplicationCacheEnabled</a>
attribute.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also</b> <a href="qwebsettings.html#offlineWebApplicationCachePath">offlineWebApplicationCachePath</a>().</p>


<h3 class="fn"><a name="setOfflineWebApplicationCacheQuota" />QWebSettings.setOfflineWebApplicationCacheQuota (int&#160;<i>maximumSize</i>)</h3><p>Sets the value of the quota for the offline web application
cache to <i>maximumSize</i>.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also</b> <a href="qwebsettings.html#offlineWebApplicationCacheQuota">offlineWebApplicationCacheQuota</a>().</p>


<h3 class="fn"><a name="setUserStyleSheetUrl" />QWebSettings.setUserStyleSheetUrl (<i>self</i>, <a href="qurl.html">QUrl</a>&#160;<i>location</i>)</h3><p>Specifies the location of a user stylesheet to load with every
web page.</p>
<p>The <i>location</i> must be either a path on the local
filesystem, or a data URL with UTF-8 and Base64 encoded data, such
as:</p>
<p>
"data:text/css;charset=utf-8;base64,cCB7IGJhY2tncm91bmQtY29sb3I6IHJlZCB9Ow=="</p>
<p><b>Note:</b> If the base64 data is not valid, the style will not
be applied.</p>
<p><b>See also</b> <a href="qwebsettings.html#userStyleSheetUrl">userStyleSheetUrl</a>().</p>


<h3 class="fn"><a name="setWebGraphic" />QWebSettings.setWebGraphic (<a href="qwebsettings.html#WebGraphic-enum">WebGraphic</a>&#160;<i>type</i>, <a href="qpixmap.html">QPixmap</a>&#160;<i>graphic</i>)</h3><p>Sets <i>graphic</i> to be drawn when <a href="qtwebkit.html">QtWebKit</a> needs to draw an image of the given
<i>type</i>.</p>
<p>For example, when an image cannot be loaded, the pixmap
specified by <a href="qwebsettings.html#WebGraphic-enum">MissingImageGraphic</a> is
drawn instead.</p>
<p><b>See also</b> <a href="qwebsettings.html#webGraphic">webGraphic</a>().</p>


<h3 class="fn"><a name="testAttribute" />bool QWebSettings.testAttribute (<i>self</i>, <a href="qwebsettings.html#WebAttribute-enum">WebAttribute</a>&#160;<i>attr</i>)</h3><p>Returns true if <i>attribute</i> is enabled; otherwise returns
false.</p>


<h3 class="fn"><a name="userStyleSheetUrl" /><a href="qurl.html">QUrl</a> QWebSettings.userStyleSheetUrl (<i>self</i>)</h3><p>Returns the location of the user stylesheet.</p>
<p><b>See also</b> <a href="qwebsettings.html#setUserStyleSheetUrl">setUserStyleSheetUrl</a>().</p>


<h3 class="fn"><a name="webGraphic" /><a href="qpixmap.html">QPixmap</a> QWebSettings.webGraphic (<a href="qwebsettings.html#WebGraphic-enum">WebGraphic</a>&#160;<i>type</i>)</h3><p>Returns a previously set pixmap used to draw replacement
graphics of the specified <i>type</i>.</p>
<p><b>See also</b> <a href="qwebsettings.html#setWebGraphic">setWebGraphic</a>().</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;snapshot-4.9.5-9eb6aac99275 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.3</td></tr></table></div></address></body></html>